{extend name="public:base" /}
{block name="main"}
<div class="ShareAnyContainer" style="font-size: 14px;">
    当前位置：<a href="{:url('shop/index/index')}" title="首页">首页</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a
        href="{:url('shop/artwork/group')}" title="艺术品">艺术品</a>
</div>
<div class="ShareAnyContainer">
    <div class="line"></div>
</div>
<div class="ShareAnySeparate"></div>
<div class="ShareAnyContainer">
    <div class="titleBig">
        艺术品
    </div>
</div>
<div class="ShareAnySeparate"></div>
<div class="ShareAnyContainer">
    <div class="work_parent">
        <div class="work">
            <table>
                <ul>
                    <tr>
                        <td>
                    {volist name="artworks" id="artwork"}
                                <li>
                                    <a href="{:url('shop/artwork/detail',['id'=>$artwork['id']])}/">
                                        <img src="/{$artwork['img']['0']}">
                                    </a>
                                    <span><br>{$artwork['title']|mb_substr=###,0,18,'utf-8'}<br>

                                        作者：{$artwork['getartist']['name']}
                                        <if condition=""> <!--如果登录了就显示价格-->
                                            <br>价格：￥{$artwork['price']}
                                        </if>
                                    </span></li>
                    {/volist}
                        </td>
                    </tr>
                </ul>
            </table>
        </div>
        <div class="ShareAnyClear"></div>
    </div>

</div>
<div class="ShareAnySeparate"></div>
<div class="ShareAnyContainer">

</div>
{/block}
{/block}

{block name="footer"}
<script>
    $(document).ready(function () {
        $(".show_hide").on("click", function () {
            $(".more").show();
            $(this).hide();
            $(".hide_hide").show();
        });
        $(".hide_hide").on("click", function () {
            $(".more").hide();
            $(this).hide();
            $(".show_hide").show();
        });
    });
</script>

{/block}